package com.yanqu.road.entity.log.vehiclesoul;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_soul_get", desc = "魂石获得消耗日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "vehsoul_get")
public class LogVehicleSoulGet extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "1获得0消耗", dataAttribute = "vehsoul_gettype")
    private int isGet;
    @FieldTypeAnnotation(desc = "魂石id", dataAttribute = "vehsoul_id")
    private int soulId;
    @FieldTypeAnnotation(desc = "魂石配置id", dataAttribute = "vehsoul_config")
    private int configId;
    @FieldTypeAnnotation(desc = "品质", dataAttribute = "vehsoul_quality")
    private int quality;
    @FieldTypeAnnotation(desc = "色块分布|隔开", dataAttribute = "vehsoul_color")
    private String color;
    @FieldTypeAnnotation(desc = "详细资质|隔开", dataAttribute = "vehsoul_intelligence")
    private String qualifications;
    @FieldTypeAnnotation(desc = "获得途径(1宝箱获得2合成获得3合成消耗)", dataAttribute = "vehsoul_way")
    private int way;

    public LogVehicleSoulGet(long userId, int isGet, int soulId, int configId, int quality, String color, String qualifications, int way) {
        this.userId = userId;
        this.isGet = isGet;
        this.soulId = soulId;
        this.quality = quality;
        this.configId = configId;
        this.color = color;
        this.qualifications = qualifications;
        this.way = way;
    }

    public long getUserId() {
        return userId;
    }
}
